function useWebsocket(params = 'NoGroup') {
  const websocket = new WebSocket(
    `ws://47.108.139.22:8083/erpn/commonWebsocket?groupName=${params}`
  )

  websocket.onmessage(m => {
    console.log(m)
  })

  return null
}

export default useWebsocket
